package com.yunxin.core.utils.infra.support.lock;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.concurrent.TimeUnit;

/**
 * @author xiaoqi
 * @since 2024-03-26
 */
@RequiredArgsConstructor
@Getter
public enum TaskLockKey {

    /**
     * 普通客户回流至公海池任务
     */
    seas_LOCK_KEY("seas:task:lock:", 3L, 60L, TimeUnit.SECONDS),//获取锁等待1秒 非手动释放锁的情况下获取锁时常为15秒
    ;

    private final String prefix;
    private final long waitTime;
    private final long releaseTime;
    private final TimeUnit timeUnit;
}
